package cn.actoncode.boot.module.ai.service.ability;

import cn.actoncode.boot.module.ai.dal.dataobject.ability.AbilityDO;
import cn.actoncode.boot.module.ai.dal.mapper.ability.AbilityMapper;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 智能体 Service 实现类
 *
 * @author bin
 */
@Service
@Valid
@Slf4j
public class AbilityServiceImpl implements AbilityService {

    @Resource
    private AbilityMapper abilityMapper;

    @Override
    public AbilityDO getAbility(Long id) {
        return abilityMapper.selectById(id);
    }

    @Override
    public AbilityDO getAbility(Integer type) {
        return abilityMapper.getAbility(type);
    }

    @Override
    public List<AbilityDO> getAbilityList() {
        return abilityMapper.getAbilityList();
    }
}
